<?php

namespace app\libs\PaypalSDK\builder;

use app\constant\ModelConstant;
use app\model\Orders;
use think\helper\Arr;

class RepurchasePaypal extends PaypalBuilder
{

    public function toArray():array
    {
        return [
            'intent'=>'CAPTURE',
            'purchase_units'=>$this->getTransactions(),
            'application_context'=>$this->get_application_context(true),
        ];
    }

}